//
//  UserHelper.h
//  CarCare
//
//  Created by ileo on 15/1/7.
//  Copyright (c) 2015年 baozun. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AIUserInfo.h"

@interface UserHelper : NSObject

extern NSString * const USER_LOGIN;
extern NSString * const USER_LOGOUT;

+(void)loginWithTel:(NSString *)tel code:(NSString *)code success:(void(^)())success fail:(void(^)())fail;
+(void)loginByLCWithTel:(NSString *)tel pwd:(NSString *)pwd success:(void(^)())success fail:(void(^)())fail;//乐乘登录

+(void)getCodeByTel:(NSString *)tel success:(void(^)())success fail:(void(^)())fail;

+(void)callMessageCodeByTel:(NSString *)tel success:(void(^)())success fail:(void(^)())fail;

//+(void)registerCodeByTel:(NSString *)tel success:(void(^)())success fail:(void(^)())fail;

+(void)getUserInfoSuccess:(void (^)())success fail:(void (^)())fail;

+(void)loginOutSuccess:(void (^)())success fail:(void (^)())fail;

#pragma mark - visiter
+(void)loginByVisiterSuccess:(void(^)())success fail:(void(^)())fail;
+(void)visiterShowBuyCar;
+(void)visiterDisappearBuyCar;

@end
